﻿namespace Borg.AttributeAnalyze
{
    using System;

    [Serializable]
    public class MSBuildResult : MSBuildResultBase
    {
        public override string ToString()
        {
            return string.IsNullOrWhiteSpace(File)
                       ? string.Format("#{0}\r\nsubcategory: {1}\r\ndescription: {2}\r\n",
                                       Count, SubCategory, Description)
                       : string.Format("#{0}\r\nfile: {1}\r\nsubcategory: {2}\r\ndescription: {3}\r\n",
                                       new object[] {Count, File, SubCategory, Description});
        }
    }
}

